@import "common";

body {
  background: #fbfbfb;
}

#address {
  .consignee {
    .consigneeInfo li, .consigneeAddress li {
      height: 45px;
      padding: 0 3%;
      border-bottom: 1px solid #dddddd;
      .active {
        color: #333333;
        font-size: 0.9em;
        line-height: 45px;
      };
      h2 {
        line-height: 45px;
        font-size: 1.128em;
        color: #333333;
      };
      .area-text {
        line-height: 45px;
        font-size: 0.9em;
        color: #999999;
        width: 28%;
      }
      input {
        border: none;
        vertical-align: top;
        width: 70%;
        height: 45px;
        outline: none;
        font-size: 0.9em;
        color: #999999;
      }
      .area {
        color: #333333;
        width: 70%;
        font-size: 0.9em;
        line-height: 45px;
      }
      .downIcon {
        height: 45px;
        @extend %boxSizing;
        img {
          width: 55%;
        }
      }
      label {
        padding-top: 14px;
        padding-right: 3%;
        float: left;
        position: relative;
        input {
          position: absolute;
          top: -500px;
          left: -500px;
        }
        span {
          display: block;
          width: 14px;
          height: 14px;
          border: 1px solid #3f6ee0;
          border-radius: 50%;
        }
        span:first-child {
          display: none;
        }
        input:checked + span {
          background: url("../images/circle.png") no-repeat;
          background-size: 100% 100%;
        }
      }
    }
    .consigneeAddress, .consigneeInfo {
      li {
        &:nth-child(2), &:nth-child(3) {
          background: #ffffff;
        }
      }
    }
    .addressBox {
      position: fixed;
      top: 0;
      left: 0;
      background: rgba(0, 20, 40, 0.6);
      width: 100%;
      height: 100%;
      .selectBox {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        height: 356px;
        .closeSelect {
          position: absolute;
          right: 3%;
          top: -12%;
          img {
            width: 46%;
          }
        }
        h3 {
          font-size: 1.128em;
          color: #333333;
          text-align: center;
          line-height: 40px;
          padding-top: 5px;
        }
        .selectNav {
          height: 40px;
          border: 1px solid #cccccc;
          div {
            float: left;
            line-height: 40px;
            width: 33%;
            text-align: center;
            p {
              color: #666666;
              font-size: 0.9em;
              width: 60%;
              margin: 0 auto;
              height: 40px;
              display: block;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }
            .active {
              color: #333333;
              font-size: 0.96em;
              border-bottom: #3f6ee0 solid 2px;
              @extend %boxSizing;
            }
          }
        }
        .selectList {
          ul {
            height: 268px;
            overflow-y: scroll;
            li {
              height: 45px;
              line-height: 45px;
              font-size: 0.9em;
              padding-left: 3%;
            }
            .active {
              color: #3f6ee0;
              background: #f2f2f2;
            }
          }
        }
      }
    }
  }
  .btn-box {
    width: 100%;
    position: fixed;
    height: 56px;
    background: #ffffff;
    left: 0;
    bottom: 0;
    border-top: 1px solid #dddddd;
    .save-btn, .edit-btn, .add-btn {
      display: block;
      width: 92%;
      height: 40px;
      line-height: 40px;
      color: #ffffff;
      background: #3f6ee0;
      margin: 8px auto 0;
      text-align: center;
      font-size: 1.128em;
      border-radius: 3px;
    }
  }
  .hidden {
    display: none;
  }
  .show {
    display: block;
  }
  .address-list {
    li {
      overflow: hidden;
      background: #ffffff;
      padding-top: 2%;
      @extend %boxSizing;
      margin-bottom: 1.2em;
      border-bottom: 1px solid #dddddd;
      border-top: 1px solid #dddddd;
      .addressInfo {
        padding-bottom: 2%;
        padding-right: 3%;
        .contact {
          font-size: 1.128em;
          color: #333333;
          padding-top: 0.6%;
          padding-left: 3%;
        }
        .tel {
          padding-top: 1%;
          padding-left: 3%;
          font-size: 1.128em;
          float: left;
          color: #999999;
        }
        .choose {
          float: right;
          width: 18px;
          height: 15px;
          background: url("../images/choose.png") no-repeat 0 center;
          background-size: cover;
        }
        .address-info {
          padding-left: 3%;
          .default-btn {
            border-radius: 4px;
            margin-top: 1.8%;
            padding: 0.8% 1.6%;
            float: left;
            font-size: 0.752em;
            text-align: center;
            color: #FFFFFF;
            background: #3f6ee0;
          }
          p {
            @extend %boxSizing;
            width: 70%;
            color: #999999;
            font-size: 0.752em;
            float: left;
            padding-top: 2.5%;
            padding-left: 2%;
            padding-bottom: 1%;
          }
        }
      }
      .clear {
        clear: both;
      }
      .hidden {
        display: none;
      }
      .show {
        display: inline-block;
      }
      .editBox {
        .delete, .redact {
          border-left: 1px solid #dddddd;
        }
        .default, .delete, .redact {
          width: 33%;
          height: 36px;
          line-height: 36px;
          text-align: center;
        }
        .changeWidthL {
          width: 49%;
        }
        @extend %boxSizing;
        border-top: 1px solid #dddddd;
        overflow: hidden;
        color: #333333;
        font-size: 0.8em;
        img {
          width: 15px;
          padding-left: 1%;
          vertical-align: sub;
        }
      }
    }
    margin-bottom: 90px;
  }
}
